package com.woniu.command.purchasedetailcommand;

import com.woniu.command.Command;
import com.woniu.command.handle.PurchaseDetailCommandHandle;
import com.woniu.uitl.ApplicationContextHolder;

public class DeletePurchaseDetailCommand implements Command<Long,String> {

    private PurchaseDetailCommandHandle handle;

    public DeletePurchaseDetailCommand() {
        this.handle = ApplicationContextHolder.getApplicationContext().getBean(PurchaseDetailCommandHandle.class);
    }

    @Override
    public String excute(Long aLong) {
        String msg = handle.deletePurDetailById(aLong);
        return msg;
    }
}
